home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / spkt452s.zip / HYPERUPS.TXT < prev    next >
Text File  |  1992-11-15  |  3KB  |  95 lines

  1.  
  2.  Uninterruptable Power Supply (UPS) Monitoring function allows HyperDisk
  3.  to change to a safe caching mode should the UPS become active. If the
  4.  power is restored the original caching mode will be restored. Any I/O
  5.  port may be monitored for active signals. The polarity of the signals 
  6.  may be inverted. Multiple signals may be selected using the IoMask
  7.  value. 
  8.  
  9. command format:
  10. UP:{IoPort}:{IoPolarity}:{IoMask}:{CacheMask}[:{PollSeconds}[:{PollCount}]]
  11.  
  12.   Items in {} are required, item in [] optional.
  13.  
  14.  
  15. IoPort: Input port address (Hex); Hex indicates hexidecimal numeric format
  16.  
  17. IoPolarity: Inverts sense of input port bits (Hex.)
  18.             0 does not change value, 1 inverts bits sense
  19.  
  20. IoMask: Determines which bits to test for non-zero condition (Hex.)
  21.        0 drops bit from test, 1 retains IoPort bit value.
  22.        Non-Zero results indicates active UPS (AC power off)
  23.        Zero results indicates inactive UPS (AC power on)
  24.  
  25. CacheMask: is a bit field, 1 disables, 0 no change
  26.  
  27. Bit.....BitName:  A one (1) will disable the corresponding function
  28.  
  29. 0..StagedFloppy:  Stage Write floppy drive write operations
  30. 1....StagedHard:  Stage Write hard drive write operations
  31. 2..VerifyFloppy:  Verify floppy drive write operations
  32. 3....VerifyHard:  Verify hard drive write operations
  33. 4.....Reserved0:  Reserved always 0
  34. 5.....Reserved1:  Reserved always 0
  35. 6..FloppyEnable:  Enable floppy caching
  36. 7..CacheEnabled:  Enable all caching functions
  37.  
  38.  
  39. PollSeconds: Sets the period in seconds to sample IoPort value
  40.  
  41. PollCount: Sets the number of identical IoPort samples before changeing
  42.            the cache state.
  43.  
  44.  
  45.  
  46.     ---    ---    ---    ---    ---    ---    ---    ---    ---    ---    ---
  47.  
  48.  
  49. IoMask Values for COM port based UPS monitoring system:
  50.  
  51.  
  52. Computer Serial Interface Modem Status Register(+6),
  53. COM1 base address 3F8+61=3FE, COM2 base address 2F8+6 =2FE
  54.  
  55.  
  56. 9-Pin Port  25-Pin Port  Signal Name       IoMask (Hex)  IoPolarity (Hex)
  57.  
  58. Pin 1       Pin-8         Carrier Detect    80           00
  59.  
  60. Pin 6       Pin-6         Data Set Ready    20           00
  61.  
  62. Pin 8       Pin-5         Clear To Send     10           00
  63.  
  64. Pin 9       Pin-22        Ring Indicator    40           00
  65.  
  66.  
  67.  
  68.     ---    ---    ---    ---    ---    ---    ---    ---    ---    ---    ---
  69.  
  70.  
  71. To make your own cable for the American Power Conversion (APC) UPS follow the
  72. pin-out details below:
  73.  
  74.  
  75.  APC 9 pin interface            Computer 9 pin interface
  76.  
  77.  Cable end: Male (Pins)            Cable end: Female (Sockets)
  78.  
  79.  
  80.    Pin 2 - AC Power Fault------------------Pin 1 - Modem Data Carrier Detect
  81.  
  82.    Pin 4 - Signal Ground-------------------Pin 5 - Signal Ground
  83.  
  84.  
  85. Example setup:
  86.  
  87.  Monitor COM2, Modem Status port: Bit 7, Carrier Detect, normal polarity
  88.  If power fails disable Staged Writes on both hard and floppy drives
  89.  30 second sample period, 3 matching samples indicates active/inactive UPS
  90.  
  91.  corresponding HyperDisk command line:
  92.  
  93.  
  94.         hyperdk up:2FE:0:80:3:30:3
  95.